aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages/blog/[...id].astro
diff options
context:
space:
mode:
authorNikhil M Warrier <nikhilmw.dev@gmail.com>2026-03-03 08:27:28 +0530
committerNikhil M Warrier <nikhilmw.dev@gmail.com>2026-03-03 08:34:14 +0530
commitb1cc6aef5d01b59daf64d12a8e9264324540d8b7 (patch)
tree591654de2cfefa5ed635f900547446dd2624e573 /src/pages/blog/[...id].astro
parentb6d2a052bd9db4dd8f687f0e8084ff0278d4c9d6 (diff)
Hide prev/next buttons, make PostNavigation more generic
Diffstat (limited to 'src/pages/blog/[...id].astro')
-rw-r--r--src/pages/blog/[...id].astro4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pages/blog/[...id].astro b/src/pages/blog/[...id].astro
index 5cc9eab..d4588e3 100644
--- a/src/pages/blog/[...id].astro
+++ b/src/pages/blog/[...id].astro
@@ -213,6 +213,7 @@ const tocSections = await getTOCSections(currentPostId)
<PostNavigation
newerPost={navigation.newer}
olderPost={navigation.older}
+ baseURL="/blog/"
parentPost={isCurrentSubpost ? navigation.parent : undefined}
/>
</section>
@@ -241,6 +242,7 @@ const tocSections = await getTOCSections(currentPostId)
<PostNavigation
newerPost={navigation.newer}
olderPost={navigation.older}
+ path="blog"
parentPost={isCurrentSubpost ? navigation.parent : undefined}
/>
</section>
@@ -296,4 +298,4 @@ const tocSections = await getTOCSections(currentPostId)
document.addEventListener('astro:page-load', ensureKatexStyles)
document.addEventListener('astro:after-swap', ensureKatexStyles)
-</script> \ No newline at end of file
+</script>